// $Id: Rendition.java 11 2011-09-08 21:03:19Z huijzer@gmail.com $
package lime.model;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.model.IWorkbenchAdapter;


public class Rendition extends RepositoryObject implements IWorkbenchAdapter {

	private String fullFormat;
	private String contentSize;
	private String setTime;
	private String setFile;
	
	public Rendition(String objectId, String objectName) {
		super(objectId, objectName);
	}
	
	public String getFullFormat() {
		return fullFormat;
	}

	public void setFullFormat(String fullFormat) {
		this.fullFormat = fullFormat;
	}
	
	public String getContentSize() {
		return contentSize;
	}
	
	public void setContentSize(String contentSize) {
		this.contentSize = contentSize;
	}
	
	public String getSetTime() {
		return setTime;
	}
	
	public void setSetTime(String setTime) {
		this.setTime = setTime;
	}
	
	public String getSetFile() {
		return setFile;
	}
	
	public void setSetFile(String setFile) {
		this.setFile = setFile;
	}
	
	@Override
	public String toString() {
		return ReflectionToStringBuilder.reflectionToString(this);
	}
	
	
	// ========================================
	// IWorkbenchAdapter
	// ========================================		
	
	@Override
	public Object[] getChildren(Object o) {
		return new Object[]{};
	}

	@Override
	public ImageDescriptor getImageDescriptor(Object object) {
		return null;
	}

	@Override
	public String getLabel(Object o) {
		return this.getFullFormat();
	}

	@Override
	public Object getParent(Object o) {
		return null;
	}
	
}
